package com.jxud.Pojo;

import com.jxud.enums.SensitiveTypeEnum;
import com.jxud.utils.SensitiveData;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {
    private Integer Id;  //id
    private String platform; //平台
    private String orderId;    //订单编号
    @SensitiveData(
            type = SensitiveTypeEnum.NAME
    )
    private String receiverPerson;    //收货人姓名
    @SensitiveData(
            type = SensitiveTypeEnum.MOBILES
    )
    private String receiverPhone;    //收货人电话
    @SensitiveData(
            type = SensitiveTypeEnum.ADDRESS
    )
    private String receiverStreet;    //详细地址
    private Integer orderStatus;    //订单状态
    private String trackingNumber;    //物流单号
    private String shippingCompany;    //物流公司
    private Float totalAmount;  //订单总金额
    private String customerNote;  //买家留言
    private String sellerNote;  //卖家备注
    private LocalDateTime createdAt;  //创建时间
    private LocalDateTime updatedAt;  //更新时间
    private String roomname;  //微信群名
    private String username;  //用户名
    private String receiverProvince;  //省
    private String receiverCity;  //市
    private String receiverCounty;  //区
    private List<OrderItems> tbSoDetails;  //订单商品信息
}
